﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace StuEdu.Web.Attendance
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int attendanceId=(Convert.ToInt32(strid));
					ShowInfo(attendanceId);
				}
			}
		}
		
	private void ShowInfo(int attendanceId)
	{
		StuEdu.BLL.Attendance bll=new StuEdu.BLL.Attendance();
		StuEdu.Model.Attendance model=bll.GetModel(attendanceId);
		this.lblattendanceId.Text=model.attendanceId.ToString();
		this.lblstuNo.Text=model.stuNo.ToString();
		this.lblattendanceState.Text=model.attendanceState.ToString();
		this.lblattendanceStyle.Text=model.attendanceStyle?"是":"否";

	}


    }
}
